package com.itheima.Mapper;

import com.itheima.pojo.OrderItem;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrderItemMapper {

    /**
     * 根据订单ID查询订单项列表
     */
    List<OrderItem> listByOrderId(@Param("orderId") Integer orderId);

    /**
     * 插入订单项
     */
    void insert(OrderItem orderItem);
}